<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Menu extends AppModel {
    var $name = 'Menu';    
    var $belongsTo = array(
        'Nguoitao' => array(
            'className' => 'Nguoidung',
            'foreignKey' => 'nguoitao'                    
        ),     
        'Nguoisua' => array(
            'className' => 'Nguoidung',
            'foreignKey' => 'nguoisua'                    
        ),
        'Menucha' => array(
            'className' => 'Menu',
            'foreignKey' => 'menucha',
            'order' => 'Menu.rank ASC'
        )
    );    
}
